<?php 
    require_once('Registry.php');
    try{
        $pdo=new PDO("mysql:localhost=localhost;dbname=sigure", "sigure", "sigure", array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8'));
        $registry = Registry::getInstance();
        $registry->set( 'PDO' , $pdo );
    } catch (Exception $ex) {
        echo $e->getMessage();
    }